<a name="comment_add"></a>
<? echo $ajax->form($url.'/comments','post',array('update'=>'comment_add','indicator'=>'comment_loading','complete'=>"new Effect.BlindDown($('comment_list').lastChild)",'after'=>'insertion:Insertion.Bottom')); ?>
<ul id="comment_add">
    <li>
        <? echo $form->hidden('Comment.article_id', array('value' => (empty($_POST) ? $article['Article']['id'] : null))); ?>
    </li>

    <li><?php echo $form->label('Comment.user_name', __('Username',true));?> <span class="required">(<? __('required'); ?>)</span></li>
    <li><?php echo $form->input('Comment.user_name', array('style'=>'width:250px;','tabindex'=>1,'label'=>false,'value'=>(empty($_POST) ? @$user['Username'] : null))); ?></li>

    <li><?php echo $form->label('Comment.title', __('Title',true));?> <span class="required">(<? __('required'); ?>)</span></li>
    <li><?php echo $form->input('Comment.title', array('style'=>'width:250px;','tabindex'=>2,'label' => false));?></li>

    <li><?php echo $form->label('Comment.text', __('Text',true));?> <span class="required">(<? __('required'); ?>)</span></li>
    <li><?php echo $form->input('Comment.text', array("rows" => 15, "cols" => 60,'tabindex'=>3,'type'=>'textarea','label'=>false));?></li>

    <li><?php echo $form->label('Comment.captcha', __(Configure::read('Captcha.question'),true));?> <span class="required">(<? __('required'); ?>)</span></li>
    <li><?php echo $form->input('Comment.captcha', array('style'=>'width:250px;','tabindex'=>4,'label' => false));?></li>

    <li>
        <div id="badinput">
            <?php echo $form->input('Comment.badinput', array('size' => '60'));?>
        </div>
    </li>

    <li>
        <span id="comment_loading" style="display: none;"><? echo $html->image("spinner.gif",array('alt'=>"Spinner")); ?></span>
        <?php echo $form->submit(__('Send',true));?>
    </li>
</ul>
</form>